﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;

namespace mitasoft.Web.DAL
{
    public class SiteDataContext : DbContext
    {
        public DbSet<Model.Book> Books { get; set; }
        public DbSet<Model.BookPost> BookPosts { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add<Model.BookPost>(new ModelConfiguration.BookPostConfiguration());
        }
    }
}
